
let executor = (resolve,reject) =>{
    // setTimeout( () => resolve(9527) , 1000 );
    setTimeout( () => reject(8526) , 1000 );
}

let p = new Promise( executor );
console.log( p );

p.then( data => console.log( 'then: ' , data ) )
 .catch( err => console.log( 'catch: ' , err ) )
 .finally( () => console.log( 'finally' ) );

console.log( 'hello' );